package org.six.background.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OutshopExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OutshopExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOutidIsNull() {
            addCriterion("outid is null");
            return (Criteria) this;
        }

        public Criteria andOutidIsNotNull() {
            addCriterion("outid is not null");
            return (Criteria) this;
        }

        public Criteria andOutidEqualTo(Integer value) {
            addCriterion("outid =", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotEqualTo(Integer value) {
            addCriterion("outid <>", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidGreaterThan(Integer value) {
            addCriterion("outid >", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidGreaterThanOrEqualTo(Integer value) {
            addCriterion("outid >=", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidLessThan(Integer value) {
            addCriterion("outid <", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidLessThanOrEqualTo(Integer value) {
            addCriterion("outid <=", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidIn(List<Integer> values) {
            addCriterion("outid in", values, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotIn(List<Integer> values) {
            addCriterion("outid not in", values, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidBetween(Integer value1, Integer value2) {
            addCriterion("outid between", value1, value2, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotBetween(Integer value1, Integer value2) {
            addCriterion("outid not between", value1, value2, "outid");
            return (Criteria) this;
        }

        public Criteria andShopidIsNull() {
            addCriterion("shopid is null");
            return (Criteria) this;
        }

        public Criteria andShopidIsNotNull() {
            addCriterion("shopid is not null");
            return (Criteria) this;
        }

        public Criteria andShopidEqualTo(Integer value) {
            addCriterion("shopid =", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotEqualTo(Integer value) {
            addCriterion("shopid <>", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThan(Integer value) {
            addCriterion("shopid >", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThanOrEqualTo(Integer value) {
            addCriterion("shopid >=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThan(Integer value) {
            addCriterion("shopid <", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThanOrEqualTo(Integer value) {
            addCriterion("shopid <=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidIn(List<Integer> values) {
            addCriterion("shopid in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotIn(List<Integer> values) {
            addCriterion("shopid not in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidBetween(Integer value1, Integer value2) {
            addCriterion("shopid between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotBetween(Integer value1, Integer value2) {
            addCriterion("shopid not between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andOutnumIsNull() {
            addCriterion("outnum is null");
            return (Criteria) this;
        }

        public Criteria andOutnumIsNotNull() {
            addCriterion("outnum is not null");
            return (Criteria) this;
        }

        public Criteria andOutnumEqualTo(Integer value) {
            addCriterion("outnum =", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumNotEqualTo(Integer value) {
            addCriterion("outnum <>", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumGreaterThan(Integer value) {
            addCriterion("outnum >", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("outnum >=", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumLessThan(Integer value) {
            addCriterion("outnum <", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumLessThanOrEqualTo(Integer value) {
            addCriterion("outnum <=", value, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumIn(List<Integer> values) {
            addCriterion("outnum in", values, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumNotIn(List<Integer> values) {
            addCriterion("outnum not in", values, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumBetween(Integer value1, Integer value2) {
            addCriterion("outnum between", value1, value2, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutnumNotBetween(Integer value1, Integer value2) {
            addCriterion("outnum not between", value1, value2, "outnum");
            return (Criteria) this;
        }

        public Criteria andOutusnameIsNull() {
            addCriterion("outusname is null");
            return (Criteria) this;
        }

        public Criteria andOutusnameIsNotNull() {
            addCriterion("outusname is not null");
            return (Criteria) this;
        }

        public Criteria andOutusnameEqualTo(String value) {
            addCriterion("outusname =", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameNotEqualTo(String value) {
            addCriterion("outusname <>", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameGreaterThan(String value) {
            addCriterion("outusname >", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameGreaterThanOrEqualTo(String value) {
            addCriterion("outusname >=", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameLessThan(String value) {
            addCriterion("outusname <", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameLessThanOrEqualTo(String value) {
            addCriterion("outusname <=", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameLike(String value) {
            addCriterion("outusname like", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameNotLike(String value) {
            addCriterion("outusname not like", value, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameIn(List<String> values) {
            addCriterion("outusname in", values, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameNotIn(List<String> values) {
            addCriterion("outusname not in", values, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameBetween(String value1, String value2) {
            addCriterion("outusname between", value1, value2, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutusnameNotBetween(String value1, String value2) {
            addCriterion("outusname not between", value1, value2, "outusname");
            return (Criteria) this;
        }

        public Criteria andOutidcardIsNull() {
            addCriterion("outidcard is null");
            return (Criteria) this;
        }

        public Criteria andOutidcardIsNotNull() {
            addCriterion("outidcard is not null");
            return (Criteria) this;
        }

        public Criteria andOutidcardEqualTo(Integer value) {
            addCriterion("outidcard =", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardNotEqualTo(Integer value) {
            addCriterion("outidcard <>", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardGreaterThan(Integer value) {
            addCriterion("outidcard >", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardGreaterThanOrEqualTo(Integer value) {
            addCriterion("outidcard >=", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardLessThan(Integer value) {
            addCriterion("outidcard <", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardLessThanOrEqualTo(Integer value) {
            addCriterion("outidcard <=", value, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardIn(List<Integer> values) {
            addCriterion("outidcard in", values, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardNotIn(List<Integer> values) {
            addCriterion("outidcard not in", values, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardBetween(Integer value1, Integer value2) {
            addCriterion("outidcard between", value1, value2, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutidcardNotBetween(Integer value1, Integer value2) {
            addCriterion("outidcard not between", value1, value2, "outidcard");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeIsNull() {
            addCriterion("outaddtime is null");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeIsNotNull() {
            addCriterion("outaddtime is not null");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeEqualTo(Date value) {
            addCriterion("outaddtime =", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeNotEqualTo(Date value) {
            addCriterion("outaddtime <>", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeGreaterThan(Date value) {
            addCriterion("outaddtime >", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("outaddtime >=", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeLessThan(Date value) {
            addCriterion("outaddtime <", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeLessThanOrEqualTo(Date value) {
            addCriterion("outaddtime <=", value, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeIn(List<Date> values) {
            addCriterion("outaddtime in", values, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeNotIn(List<Date> values) {
            addCriterion("outaddtime not in", values, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeBetween(Date value1, Date value2) {
            addCriterion("outaddtime between", value1, value2, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andOutaddtimeNotBetween(Date value1, Date value2) {
            addCriterion("outaddtime not between", value1, value2, "outaddtime");
            return (Criteria) this;
        }

        public Criteria andUsidIsNull() {
            addCriterion("usid is null");
            return (Criteria) this;
        }

        public Criteria andUsidIsNotNull() {
            addCriterion("usid is not null");
            return (Criteria) this;
        }

        public Criteria andUsidEqualTo(Integer value) {
            addCriterion("usid =", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotEqualTo(Integer value) {
            addCriterion("usid <>", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidGreaterThan(Integer value) {
            addCriterion("usid >", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("usid >=", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidLessThan(Integer value) {
            addCriterion("usid <", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidLessThanOrEqualTo(Integer value) {
            addCriterion("usid <=", value, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidIn(List<Integer> values) {
            addCriterion("usid in", values, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotIn(List<Integer> values) {
            addCriterion("usid not in", values, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidBetween(Integer value1, Integer value2) {
            addCriterion("usid between", value1, value2, "usid");
            return (Criteria) this;
        }

        public Criteria andUsidNotBetween(Integer value1, Integer value2) {
            addCriterion("usid not between", value1, value2, "usid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}